package com.zhou.demo01;

public class Proxy implements Rent{

    private Host host;
    public Proxy(){
    }

    public Proxy(Host host) {
        this.host = host;
    }

    public void rent() {
        seeHouse();
        host.rent();
        signHouse();
        seeFee();
    }
    public void seeHouse(){
        System.out.println("中介带你看房...");
    }
    public void seeFee(){
        System.out.println("收中介费...");
    }
    public void signHouse(){
        System.out.println("签租赁合同...");
    }
}
